package RadioButton;

import javax.swing.*;
import java.awt.*;

public class RadioButton extends JFrame{
    public RadioButton() {
        this.setLayout(null);
        RadioButtonControl radio = new RadioButtonControl("性别",new String[]{"男","女"},20,40,this);
        System.out.println(radio.getItem());


        this.setSize(500,600);
        this.setVisible(true);
        this.setDefaultCloseOperation(3);
        this.setLocationRelativeTo(null);
    }

    public static void main(String[] args) {
        new RadioButton();
    }
}
